package com.sen.Easy;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.*;

public class L189_Rotate_ArrayTest {
    L189_Rotate_Array test;
    @Before
    public void setUp(){
        test = new L189_Rotate_Array();
    }

    @After
    public void tearDown(){
        test = null;
    }
    @Test
    public void testRotate() {
        int[] input = {1,2,3,4,5,6,7};
        int[] ouput = {5,6,7,1,2,3,4};
        int k = 3;
        test.rotate(input, k);
        int[] actuals = input;
        assertArrayEquals(ouput,actuals);



    }


}